package pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class MoviePage extends Page{
	
	@FindBy(name = "name")
	public static WebElement titleFill;
	
	@FindBy(name = "year")
	public static WebElement yearFill;
	
	@FindBy(id = "submit")
	public static WebElement saveButton;
	
	@FindBy(css = "img[src='http://localhost/php4dvd/tpl/default/images/icons/32x32/delete.png']")
	public static WebElement deleteButton;
	
	@FindBy(id = "movie")
	public static WebElement movieAttribute;

	public static void editMovieClick(String locator) {
		driver.findElement(By.cssSelector("a[href='./?go=edit&id="+ (locator) + "']")).click();
		
	}

}
